<?php include _include(APP_PATH.'view/htm/header.inc.htm');?>
<h1>文档数据批量汇总</h1>
<form action="/parsedoc.htm?XDEBUG_SESSION_START=PHPSTORM" id="form" method="post">
    <div class="form-group row">
        <label class="col-2 form-control-label">文件目录:</label>
        <div class="col-10">
            <input type="text" id="pathname" name="pathname" autocomplete="off" class="form-control col-6  col-sm-10" placeholder="输入存放文档的目录名称,默认为docs,暂时只支持*.html格式"  value="" tilte="相对于/upload/*" />
        </div>
    </div>
    <div class="form-group row">
        <label class="col-2 form-control-label">文档内容:</label>
        <div class="col-10">
            <label>
                <select class="custom-select mr-1 w-auto" name="doctype">
                    <option value="xjdlzgft">新疆电力职工访谈</option>
                    <option value="gdhmzgft">国网哈密供电公司职工访谈</option>
                    <option value="other">定制请联系本站</option>
                </select>
            </label>
            <label><input type="text" id="questioncount" name="questioncount" class="form-control" placeholder="手工指定问题数量"  value="" autocomplete="off" /></label>
        </div>
    </div>
    <div class="form-group row">
        <label class="col-2 form-control-label">操作密码:</label>
        <div class="col-10">
            <input type="password" id="optpwd" name="optpwd" class="form-control col-4  col-sm-6" autocomplete="new-password" placeholder="输入操作密码以验明身份"  />
        </div>
    </div>

    <div class="form-group text-center">
        <button type="submit" class="btn btn-primary" id="submit"  name="submit" data-loading-text="<?php echo lang('submiting');?>..."> <?php echo lang('operation');?> </button>
    </div>


</form>

<form action="/parsedoc.htm?XDEBUG_SESSION_START=PHPSTORM" id="form2" method="post">
    <div class="form-group row">
        <label class="col-2 form-control-label">生成下载:</label>
        <div class="col-10">
            <input type="text" id="fdname" name="fdname" class="form-control col-4 float-left  col-sm-8" placeholder="服务器处理之后生成的结果文件名" value="<?php echo $down_file_name;?>"  />
            <button type="submit" class="btn btn-secondary float-left" id="submit2"  name="submit2" data-loading-text="<?php echo lang('submiting');?>..."> <?php echo lang('download');?> </button>
        </div>
    </div>
    <div class="form-group row">
        <textarea class="form-control" readonly="readonly" placeholder="运行提示或者错误信息" id="message" style="height: 300px;"><?php echo $err_message;?></textarea>
    </div>
</form>

<?php include _include(APP_PATH.'view/htm/footer.inc.htm');?>